package com.teen9g.infoplatformserver.service.impl;

import com.teen9g.entity.SingleRecentEdit;
import com.teen9g.infoplatformserver.mapper.RecentEditMapper;
import com.teen9g.infoplatformserver.service.RecentEditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecentEditServiceImpl implements RecentEditService {

    @Autowired
    private RecentEditMapper recentEditMapper;

    /**
     * 获取最近15条编辑记录
     *
     * @return
     */
    @Override
    public List<SingleRecentEdit> getRecentEdit() {
        return recentEditMapper.getRecentEdit();
    }

    /**
     * 根据食堂店铺id获取该店铺的所有编辑记录
     *
     * @param id
     * @return
     */
    @Override
    public List<SingleRecentEdit> CS_getRecentEditById(Integer id) {
        return recentEditMapper.CS_getRecentEditById(id);
    }

    /**
     * 获取最近15条被编辑的食堂店铺相关的记录
     *
     * @return
     */
    @Override
    public List<SingleRecentEdit> CS_getRecentEdit() {
        return recentEditMapper.CS_getRecentEdit();
    }

    @Override
    public List<SingleRecentEdit> TB_getRecentEdit() {
        return recentEditMapper.TB_getRecentEdit();
    }

    @Override
    public List<SingleRecentEdit> TB_getRecentEditById(Integer id) {
        return recentEditMapper.TB_getRecentEditById(id);
    }

    @Override
    public List<SingleRecentEdit> MC_getRecentEditById(Integer id) {
        return recentEditMapper.MC_getRecentEditById(id);
    }

    @Override
    public List<SingleRecentEdit> PG_getRecentEditById(Integer id) {
        return recentEditMapper.PG_getRecentEditById(id);
    }

}
